/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "news_clientsoftupdaterule")
//@NamedQueries({@NamedQuery(name = "NewsClientsoftupdaterule.findAll", query = "SELECT n FROM NewsClientsoftupdaterule n"), @NamedQuery(name = "NewsClientsoftupdaterule.findByClientua", query = "SELECT n FROM NewsClientsoftupdaterule n WHERE n.newsClientsoftupdaterulePK.clientua = :clientua"), @NamedQuery(name = "NewsClientsoftupdaterule.findByClientchannel", query = "SELECT n FROM NewsClientsoftupdaterule n WHERE n.newsClientsoftupdaterulePK.clientchannel = :clientchannel"), @NamedQuery(name = "NewsClientsoftupdaterule.findByClientsn", query = "SELECT n FROM NewsClientsoftupdaterule n WHERE n.newsClientsoftupdaterulePK.clientsn = :clientsn"), @NamedQuery(name = "NewsClientsoftupdaterule.findByUpdateurl", query = "SELECT n FROM NewsClientsoftupdaterule n WHERE n.updateurl = :updateurl"), @NamedQuery(name = "NewsClientsoftupdaterule.findByIsmust", query = "SELECT n FROM NewsClientsoftupdaterule n WHERE n.ismust = :ismust"), @NamedQuery(name = "NewsClientsoftupdaterule.findByRuleupdatetime", query = "SELECT n FROM NewsClientsoftupdaterule n WHERE n.ruleupdatetime = :ruleupdatetime"), @NamedQuery(name = "NewsClientsoftupdaterule.findByLastsn", query = "SELECT n FROM NewsClientsoftupdaterule n WHERE n.lastsn = :lastsn"), @NamedQuery(name = "NewsClientsoftupdaterule.findByModifyer", query = "SELECT n FROM NewsClientsoftupdaterule n WHERE n.modifyer = :modifyer")})
public class NewsClientsoftupdaterule implements Serializable {
    private static final long serialVersionUID = 1L;
    @EmbeddedId
    protected NewsClientsoftupdaterulePK newsClientsoftupdaterulePK;
    @Column(name = "updateurl")
    private String updateurl;
    @Column(name = "ismust")
    private Integer ismust;
    @Column(name = "ruleupdatetime")
    @Temporal(TemporalType.TIMESTAMP)
    private Date ruleupdatetime;
    @Column(name = "lastsn")
    private String lastsn;
    @Column(name = "modifyer")
    private String modifyer;
    @Column(name = "upgrademsg")
    private String upgradeMsg;
    @Column(name = "updatetip")
    private String updatetip;
    public String getUpgradeMsg() {
		return upgradeMsg;
	}

	public String getUpdatetip() {
		return updatetip;
	}

	public void setUpdatetip(String updatetip) {
		this.updatetip = updatetip;
	}

	public void setUpgradeMsg(String upgradeMsg) {
		this.upgradeMsg = upgradeMsg;
	}

	public NewsClientsoftupdaterule() {
    }

    public NewsClientsoftupdaterule(NewsClientsoftupdaterulePK newsClientsoftupdaterulePK) {
        this.newsClientsoftupdaterulePK = newsClientsoftupdaterulePK;
    }

    public NewsClientsoftupdaterule(String clientua, String clientchannel) {
        this.newsClientsoftupdaterulePK = new NewsClientsoftupdaterulePK(clientua, clientchannel);
    }

    public NewsClientsoftupdaterulePK getNewsClientsoftupdaterulePK() {
        return newsClientsoftupdaterulePK;
    }

    public void setNewsClientsoftupdaterulePK(NewsClientsoftupdaterulePK newsClientsoftupdaterulePK) {
        this.newsClientsoftupdaterulePK = newsClientsoftupdaterulePK;
    }
    
    public String getUpdateurl() {
        return updateurl;
    }

    public void setUpdateurl(String updateurl) {
        this.updateurl = updateurl;
    }

    public Integer getIsmust() {
        return ismust;
    }

    public void setIsmust(Integer ismust) {
        this.ismust = ismust;
    }

    public Date getRuleupdatetime() {
        return ruleupdatetime;
    }

    public void setRuleupdatetime(Date ruleupdatetime) {
        this.ruleupdatetime = ruleupdatetime;
    }

    public String getLastsn() {
        return lastsn;
    }

    public void setLastsn(String lastsn) {
        this.lastsn = lastsn;
    }

    public String getModifyer() {
        return modifyer;
    }

    public void setModifyer(String modifyer) {
        this.modifyer = modifyer;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (newsClientsoftupdaterulePK != null ? newsClientsoftupdaterulePK.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof NewsClientsoftupdaterule)) {
            return false;
        }
        NewsClientsoftupdaterule other = (NewsClientsoftupdaterule) object;
        if ((this.newsClientsoftupdaterulePK == null && other.newsClientsoftupdaterulePK != null) || (this.newsClientsoftupdaterulePK != null && !this.newsClientsoftupdaterulePK.equals(other.newsClientsoftupdaterulePK))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.NewsClientsoftupdaterule[newsClientsoftupdaterulePK=" + newsClientsoftupdaterulePK + "]";
    }

}
